import redis

from subsidy.app.config import Config
from subsidy.app.utils.Utils import get_db_connection
from subsidy.app.config.Config import db_data
class BaseDb():
    def __init__(self):
        self.connection = get_db_connection(db_data)
        self.connection.cursor()
        self.readDb = redis.Redis(host=Config.redis.get("host"), port=Config.redis.get("port"), db=Config.redis.get("db"), password=Config.redis.get("password"))